package com.yjt.fresh.adpater;

import android.support.annotation.Nullable;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yjt.fresh.R;
import com.yjt.fresh.bean.BeanStore;

import java.util.List;

import jp.wasabeef.glide.transformations.CropCircleTransformation;

/**
 *
 * Created by mcc on 2018/6/10.
 */

public class AdpRvAtyStores extends BaseQuickAdapter<BeanStore, BaseViewHolder> {
    public AdpRvAtyStores(int layoutResId, @Nullable List<BeanStore> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BeanStore item) {
        ImageView ivLogo = helper.getView(R.id.iv_app_recycle_item_stores_storeIMG);
        TextView tvTitle = helper.getView(R.id.tvAppRecycleItemStoresTitle);
        Glide.with(mContext).load(item.getLOGO_IMG()).placeholder(R.mipmap.image_default).into(ivLogo);
        tvTitle.setText(item.getSTORE_NAME());
    }
}
